package io.github.biezhi.elves.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.biezhi.elves.mapper.QccBidDetailMapper;
import io.github.biezhi.elves.qcc.model.CompBidDetail;
import io.github.biezhi.elves.qcc.model.CompBidUrlDate;
import io.github.biezhi.elves.service.QccBidDetailService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service("qccBidDetailService")
public class QccBidDetailServiceImpl implements QccBidDetailService{

	@Autowired
	private QccBidDetailMapper qccBidDetailMapper;

	@Override
	public List<CompBidUrlDate> queryCompBidUrlDate(Integer num) {
		return qccBidDetailMapper.queryCompBidUrlDate(num);
	}

	@Override
	public void updateCompBidUrlDateState(Long bidId, Integer state) {
		qccBidDetailMapper.updateCompBidUrlDateState(bidId, state);
	}

	@Override
	public void insertCompBidDetail(CompBidDetail compBidDetail) {
		qccBidDetailMapper.insertCompBidDetail(compBidDetail);
	}

	@Override
	public List<CompBidDetail> queryCompBidDetail(String compName) {
		return qccBidDetailMapper.queryCompBidDetail(compName);
	}

}
